﻿using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;

namespace CheryABP.Common
{
    public class DESEncrypt
    {

       
        /// <summary> 
        /// 加密数据 
        /// </summary> 
        /// <param name="Text"></param> 
        /// <param name="sKey"></param> 
        /// <returns></returns> 
        public static string Encrypt_pw(string Text)
        {
            byte[] b = System.Text.Encoding.Default.GetBytes(Text);
            string password = Convert.ToBase64String(b);
            return password;
        }
    }
}
